﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Dashboard.ClusteringSvc;
using Dashboard.SettingSvc;
using Liquid;
using NokolaNavi;

namespace Dashboard
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            InitializeComponent();
        }

        #region animation on menu
        private void ButtonSeven_MouseMove(object sender, MouseEventArgs e)
        {
            NaviButton button = sender as NaviButton;
            if (button == null) return;
            textInfo.Text = button.Title;
        }
        #endregion

        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            this.treeData.ClusterResultSelected += new OnClusterResultSelected(treeData_ClusterResultSelected);
        }

        void treeData_ClusterResultSelected(DocumentClusteringOutput output)
        {
            this.clusterResultView.LoadClusterResult(output);
        }

        
    }
}
